<?php
include "ApiAgent.php";

$auth = new Authentication("U9140795", "accountname", "lemontree89");

$accountToRetrieve = "U9140795";

$apiAgent = ApiAgentFactory::createApiAgent(ApiAgentFactory::XML, $auth); 
$accountName = $apiAgent->accountName($accountToRetrieve);    

echo $accountName;
?> 